package com.study.java.oop.gongze;

import java.util.Arrays;

public class Test {
    public static void main(String[] args){
        Employee[] employee = new Employee[29];

       for (int i=0; i<29;i++){
           if (i/3==0){
               employee[i] = new WeekWorker();
           } else if (i%3==1) {
               employee[i] = new MonthWorker();
           } else if(i%3==2) {
               employee[i] = new YearWorker();
           }

       }


        Company company = new Company(employee);

        company.paySalaries();
    }
}
